package org.example.mapping;

import java.util.Locale;

public enum SqlCommandType {

    UNKNOWN,
    INSERT,
    UPDATE,
    DELETE,
    SELECT,
    FLUSH;




    public static SqlCommandType getInstance(String name) {
        String upperCase = name.toUpperCase(Locale.ENGLISH);
        SqlCommandType commandType = SqlCommandType.valueOf(upperCase);
        if(commandType == null) {
            commandType = UNKNOWN;
        }
        return commandType;
    }






}
